<?php
global $_W,$_GPC;
if($_W['role']){
	$did = $_GPC['did'];
	$del = pdo_delete('mii_ang_class',array('id'=>$did));
	if($del){
		$code = array('status'=>'1','msg'=>'删除成功');
		exit(json_encode($code));
	}else{
		$code = array('status'=>'2','msg'=>'删除失败');
		exit(json_encode($code));		
	}
}else{
	$code = array('status'=>'2','msg'=>'没有操作权限');
	exit(json_encode($code));	
}

?>	